package com.qiall.oms.ability.request;

import com.qiall.common.request.BaseRequest;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class ReportDubboRequest extends BaseRequest {
    private static final long serialVersionUID = 5138156486615040931L;
    private String applicationName;
    private String defaultGroup;
    private String ip;
    private int port;
    List<ServiceInfo> serviceList;

    @Data
    public static class ServiceInfo implements Serializable {
        private static final long serialVersionUID = 6996654375715081854L;
        private String group;
        List<MethodInfo> methods;
        String service;
        String version;
        private String methodsJson;

    }
    @Data
    public static class MethodInfo implements Serializable {
        private static final long serialVersionUID = 3607724666651458677L;
        private String methodName;
        private List<String>paramTypes;
        private List<Object> params;
    }


}
